package com.zg.http;

import com.zg.util.SingletonObject;
import com.fasterxml.jackson.databind.ObjectMapper;

import javax.ws.rs.ext.ContextResolver;
import javax.ws.rs.ext.Provider;

@Provider
public class JerseyObjectMapperProvider implements ContextResolver<ObjectMapper> {
	
	@Override
	public ObjectMapper getContext(Class<?> type) {
		return SingletonObject.objectMapper;
	}
}